﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Execution.cs" company="">
//   
// </copyright>
// <summary>
//   The execution.
// </summary>
// --------------------------------------------------------------------------------------------------------------------


using System;

namespace Systemathics.FrameWork
{
    [Serializable]
    public class Execution
    {
        public Guid Id { get; set; }
        public Guid OrderId { get; set; }
        public string Counterparty { get; set; }
        public Decimal Price { get; set; }
        public int Quantity { get; set; }
        public DateTime Time { get; set; } 

        public Execution(Guid orderId, Decimal price, int quantity, string counterparty)
        {
            Id = Guid.NewGuid();
            OrderId = orderId;
            Price = price;
            Quantity = quantity;
            Counterparty = counterparty;
        }
    }
}